package AST;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class FpList {
	private List<FpDef> fpDefList = new ArrayList<FpDef>();

	public FpList(List<FpDef> fpDefList) {
		print();
		this.fpDefList = fpDefList;
	}

	public List<FpDef> getFpDefList() {
		return fpDefList;
	}

	public void setFpDefList(List<FpDef> fpDefList) {
		this.fpDefList = fpDefList;
	}

	public void print() {
		System.out.println("FpList");
	}

	public void genC(PW pw) {
		Iterator<FpDef> itFpDef = fpDefList.iterator();

		itFpDef.next().genC(pw);
		while (itFpDef.hasNext()) {
			pw.print(", ");
			itFpDef.next().genC(pw);
		}
		pw.print(";");

	}

}